package com.glsc.ngateway.common.base.repo.mysql.gateway.oaflow;

import com.glsc.ngateway.common.base.domain.mysql.gateway.oaflow.TOaFlowSystemTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TOaFlowSystemTableRepository extends JpaRepository<TOaFlowSystemTable, Long> {


    /**
     * @param workFlowId
     * @return
     */
    @Query(value = "select m from TOaFlowSystemTable m where m.workFlowId = :workFlowId")
    List<TOaFlowSystemTable> getSystemName(String workFlowId);


}
